import dayjs from 'dayjs';
import { JSONPath } from 'jsonpath-plus';
import lodash from 'lodash';
import { aopUtils } from './aopUtils';
import { cqrs } from './cqrs';
import { fetcher } from './fetcher';
import { storage } from './storage';
import { utils as sfwUtils } from './utils';

if (!window.sfw) {
  window.sfw = {
    lodash: lodash,
    JSONPath: JSONPath,
    dayjs: dayjs,
    storage: storage,
    fetcher: fetcher,
    cqrs: cqrs,
    aopUtils: aopUtils,
    sfwUtils: sfwUtils,
  };
}
